package com.example;

import java.util.Arrays;

public class Service {

    public void sayHello(){
        System.out.println("hello world");
        StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
        Arrays.stream(stackTraceElements).forEach(stackTraceElement -> System.out.println(stackTraceElement));
    }
}
